home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / StartupTools / PatchMath020.lha / PatchMath020.doc < prev   
Text File  |  1993-11-15  |  1KB  |  31 lines

  1.  
  2. PatchMath020
  3.  
  4.    This program "snoops" through other programs looking for 32 bit
  5.    interger multiply, divide and modulus subroutines and replaces
  6.    them with 68020 multiply, divide and modulus instructions.  The
  7.    68000 only has 16 bit multiply and 16 bit divide (divide a 32 bit
  8.    number by a 16 bit number giving a 16 bit result and a 16 bit
  9.    modulus) instructions.  C compilers for the Amiga all generate
  10.    68000 code so they must make subroutine calls to perform full
  11.    32 bit math.
  12.  
  13.    This program recognizes several of these library modules and can
  14.    replace 20 or thirty opcodes with two: the multiply or divide
  15.    followed by RTS.
  16.  
  17.    Programs which use 32 bit math intensively may run significantly
  18.    faster after being treated with PatchMath020.  A few modified
  19.    programs run 2 to 3 times faster than the originals.  A more
  20.    common result is 15 to 20 percent faster due to the fact that
  21.    multiply/divide/modulus is usually a small fraction of the
  22.    instructions executed.  As an example, Sculpt 3D's object editor
  23.    runs 15% faster after being modified by PatchMath020.  Silver
  24.    runs an additional 40% faster.
  25.  
  26.    Note that the program is modified "in place" so be sure to
  27.    make a backup before running PatchMath020 on you program.
  28.    Also note that these modified programs will no longer run on
  29.    normal Amigas.
  30.  
  31.